package com.ihr360.cnb.module.common.service.fallback;

import com.ihr360.authority.embed.base.entity.AuthStaffDataModel;
import com.ihr360.authority.embed.base.entity.AuthStaffDataRequest;
import com.ihr360.cnb.module.common.service.Ihr360StaffApiService;
import com.ihr360.commons.exception.Ihr360Exception;
import com.ihr360.entity.PageData;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author richey
 */
@Component
public class Ihr360StaffApiServiceFallback implements Ihr360StaffApiService {

    @Override
    public PageData<AuthStaffDataModel> getAuthStaffs(AuthStaffDataRequest authStaffDataRequest) {
        throw new Ihr360Exception(null, "获取有权限访问的员工失败！");
    }

    @Override
    public List<AuthStaffDataModel> getAllAuthStaffs(AuthStaffDataRequest authStaffDataRequest) {
        throw new Ihr360Exception(null, "获取所有有权限访问的员工失败！");
    }

    @Override
    public List<String> getAuthStaffIds(String companyId,
                                        String userId,
                                        AuthStaffDataRequest authStaffDataRequest) {
        throw new Ihr360Exception(null, "获取有权限访问的员工失败！");
    }
}
